<?php
require_once("./PageClass/BasePage.php");

class Page1 extends BasePage {
    function __construct() {
        parent::__construct();
        echo "<!--" . __CLASS__ . " constructed-->";
    }

    function __destruct() {
        echo "<!--" . __CLASS__ . " destructed-->";  
        parent::__destruct();
    }

    public function PrintHeader() {

        parent::PrintCommonHeader();

        include 'header2.php';
    }

    public function PrintFooter() {
            
        include 'footer.php';
    }
}

$page1Object = new Page1;
?>

<style type="text/css">
body {
	background-image:url('bg1.png');}
	background-repeat:no-repeat;
}
</style>

<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
        <title></title>
    </head>
    <body>	
    <?php $page1Object->PrintHeader(); ?>
	<?php include 'Share/ShareBox.php' ?>
	<?php include 'box.php' ?>
	<?php include 'box.php' ?>
	<br>
    <?php $page1Object->PrintFooter(); ?>
	</body>
</html>
